Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
8965fc4 to
79affbf
Compare
79affbf to
b7603f6
Compare
b7603f6 to
5d40605
Compare
5d40605 to
361fa39
Compare
361fa39 to
6768605
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
evlog@2.13.0
Minor Changes
#280
fa0ee26Thanks @HugoRCD! - Addevlog/better-authintegration for automatic user identification from Better Auth sessions.New exports (
evlog/better-auth):identifyUser(log, session, options?)— setsuserId,user, andsessionfields on a wide event. Returnstrueif identifiedcreateAuthMiddleware(auth, options?)— framework-agnostic(log, headers, path?) => Promise<boolean>with route filtering, timing capture, and lifecycle hookscreateAuthIdentifier(auth, options?)— Nitrorequesthook factory for standalone Nitro appsmaskEmail(email)— utility to mask emails for safe logging (h***@example.com)BetterAuthInstance— reusable type for the auth parameterFeatures:
include/excluderoute pattern filtering oncreateAuthMiddlewareextendcallback for Better Auth plugin fields (organizations, roles, etc.)auth.resolvedIntiming in every wide eventauth.identifiedboolean in every wide eventsession.userAgentcaptured by defaultonIdentify/onAnonymouslifecycle hooksconsole.warnin development when session resolution fails#284
861f6d2Thanks @HugoRCD! -log.set()concatenates arrays when merging context for the same key. For example,set({ items: [1, 2] })followed byset({ items: [3] })yields{ items: [1, 2, 3] }instead of replacing with[3]. Plain objects are still deep-merged recursively; if either the existing or incoming value is not an array, the new value replaces the old one.Breaking change: Call sites that relied on the last
setoverwriting an array now accumulate elements. To replace a value at emit time, useemit({ ... })overrides or a different field name.